package com.gblw.rjkf.pj.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * (SysRole)表实体类
 *
 * @author makejava
 * @since 2024-09-20 19:18:08
 */
@Data
@ApiModel(value = "SysRole")
public class SysRole {
    @ApiModelProperty(" 角色ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("角色名称")
    private String name;

    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("0正常1删除")
    @TableField(fill = FieldFill.INSERT)
    private Integer sStatus;

    @ApiModelProperty("拥有菜单")
    private String menuIds;

    @ApiModelProperty("拥有权限")
    private String premisIds;
}

